﻿using Microsoft.AspNetCore.Http;
using Simple.Contracts.Models;
using Simple.Contracts.Models.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Contracts.Contracts
{
    /// <summary>
    /// 文件
    /// </summary>
    public interface IFileService
    {
        /// <summary>
        /// 上传图片
        /// </summary>
        /// <param name="fileTag"></param>
        /// <param name="file"></param>
        /// <returns></returns>
        Task<Result<UploadImageDto>> UploadImage(string fileTag, IFormFile file);

        /// <summary>
        /// 上传MP3
        /// </summary>
        /// <param name="fileTag"></param>
        /// <param name="durationSecond"></param>
        /// <param name="file"></param>
        /// <returns></returns>
        Task<Result<UploadMp3Dto>> UploadMp3(string fileTag, double durationSecond, IFormFile file);
    }
}
